package com.feign.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableFeignClients
/**
 * @EnableDiscoveryClient
 * 使用于各个版本
 * 是能够让注册中心能够发现，扫描到改服务。
 * 还有一个注解是EnableEurekaClient 仅能使用Eureka做服务中心
 */
@EnableDiscoveryClient
public class FeiginStudyApplication {

    public static void main(String[] args) {
        SpringApplication.run(FeiginStudyApplication.class, args);
    }
}
